<!--
  @author chongw
  @since 2021-05-28 17:05:29
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead >
        <tr>
            <th lay-data="{field:'thresholdId',type:'checkbox',unresize:true, align:'center', fixed:'left'}"></th>
            <!--<th lay-data="{field:'orgThrName', unresize:true, align:'center'}">子公司</th>-->
            <th lay-data="{field:'cityName',unresize:true, align:'center'}">城市</th>
            <th lay-data="{field:'value', unresize:true, align:'center'}">整体单量阈值</th>
            <th lay-data="{field:'status',unresize:true, align:'center'}">状态</th>
            <th lay-data="{field:'updateTime',unresize:true, align:'center'}">修改时间</th>
            <th lay-data="{field:'操作', unresize:true, align:'center', fixed:'right'}">操作</th>
        </tr>
    </thead>
    <tbody>
        <tr th:each="item:${items}">
            <td th:text="${item.thresholdId}"></td>
            <!--<td th:text="${item.data.orgThrName}"></td>-->
            <td th:text="${item.data.provinceName+'.'+item.data.cityName}"></td>
            <td th:text="${item.data.value}"></td>
            <td>
                <div>
                    <input type="checkbox" name="status" id="status" th:key="${item.thresholdId}" th:value="${item.status}"
                           lay-text="ON|OFF" lay-skin="switch" lay-filter="chk_one_status"
                           th:checked="${item.status == 2}"/>
                </div>
            </td>
            <td th:text="${T(com.zmn.common.utils.date.DateUtil).toString(item.updateTime)}"></td>
            <td>
                <a href="javascript:void(0)" lay-text="配置规则" style="color: #00a0e9" th:onclick="|ruleInfo(${item.thresholdId})|">配置规则</a>
            </td>
        </tr>
    </tbody>
</table>